  /**
   * Generate time : 2016-06-02 12:34:26
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ch.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCHGrubValidateData 
 * table comment : 掘进验收汇报 
 */
public class ZMCHGrubValidateData extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdTunnelType = " ";		/* 巷道类别ID*/
	private String fdDepartmentId = " ";		/* 施工部门ID*/
	private String fdDepartment = " ";		/* 施工部门ID*/
	private String fdProjectId = " ";		/* 工程ID*/
	private String fdRockCategory = " ";		/* 煤岩类别ID*/
	private String fdDrivingMode = " ";		/* 掘进方式*/
	private String fdCheckKey = " ";		/* 外键*/
	private BigDecimal fdMoveLength = new BigDecimal("0");		/* 进尺(米)*/
	private BigDecimal fdCheckJjm = new BigDecimal("0");		/* 掘进煤*/
	private String fdRoadwayUsing = " ";		/* 巷道用途*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTunnelType");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("巷道类别ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("施工部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProjectId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("工程ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRockCategory");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("煤岩类别ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDrivingMode");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("掘进方式");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCheckKey");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("外键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMoveLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("进尺(米)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCheckJjm");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("掘进煤");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRoadwayUsing");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("巷道用途");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCHGrubValidateData() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdTunnelType - 巷道类别ID
	 * @return the fdTunnelType
	 */
	public String getFdTunnelType() {
		return this.fdTunnelType;
	}
	
	/**
	 * set the fdTunnelType - 巷道类别ID
	 */
	public void setFdTunnelType(String fdTunnelType) {
		this.fdTunnelType = fdTunnelType;
	}
	/**
	 * get the fdDepartmentId - 施工部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	/**
	 * get the fdDepartment - 施工部门ID
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 施工部门ID
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the fdProjectId - 工程ID
	 * @return the fdProjectId
	 */
	public String getFdProjectId() {
		return this.fdProjectId;
	}
	
	/**
	 * set the fdProjectId - 工程ID
	 */
	public void setFdProjectId(String fdProjectId) {
		this.fdProjectId = fdProjectId;
	}
	/**
	 * get the fdRockCategory - 煤岩类别ID
	 * @return the fdRockCategory
	 */
	public String getFdRockCategory() {
		return this.fdRockCategory;
	}
	
	/**
	 * set the fdRockCategory - 煤岩类别ID
	 */
	public void setFdRockCategory(String fdRockCategory) {
		this.fdRockCategory = fdRockCategory;
	}
	/**
	 * get the fdDrivingMode - 掘进方式
	 * @return the fdDrivingMode
	 */
	public String getFdDrivingMode() {
		return this.fdDrivingMode;
	}
	
	/**
	 * set the fdDrivingMode - 掘进方式
	 */
	public void setFdDrivingMode(String fdDrivingMode) {
		this.fdDrivingMode = fdDrivingMode;
	}
	/**
	 * get the fdCheckKey - 外键
	 * @return the fdCheckKey
	 */
	public String getFdCheckKey() {
		return this.fdCheckKey;
	}
	
	/**
	 * set the fdCheckKey - 外键
	 */
	public void setFdCheckKey(String fdCheckKey) {
		this.fdCheckKey = fdCheckKey;
	}
	/**
	 * get the fdMoveLength - 进尺(米)
	 * @return the fdMoveLength
	 */
	public BigDecimal getFdMoveLength() {
		return this.fdMoveLength;
	}
	
	/**
	 * set the fdMoveLength - 进尺(米)
	 */
	public void setFdMoveLength(BigDecimal fdMoveLength) {
		this.fdMoveLength = fdMoveLength;
	}
	/**
	 * get the fdCheckJjm - 掘进煤
	 * @return the fdCheckJjm
	 */
	public BigDecimal getFdCheckJjm() {
		return this.fdCheckJjm;
	}
	
	/**
	 * set the fdCheckJjm - 掘进煤
	 */
	public void setFdCheckJjm(BigDecimal fdCheckJjm) {
		this.fdCheckJjm = fdCheckJjm;
	}
	/**
	 * get the fdRoadwayUsing - 巷道用途
	 * @return the fdRoadwayUsing
	 */
	public String getFdRoadwayUsing() {
		return this.fdRoadwayUsing;
	}
	
	/**
	 * set the fdRoadwayUsing - 巷道用途
	 */
	public void setFdRoadwayUsing(String fdRoadwayUsing) {
		this.fdRoadwayUsing = fdRoadwayUsing;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdTunnelType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTunnelType")), fdTunnelType));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdProjectId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectId")), fdProjectId));
		setFdRockCategory(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRockCategory")), fdRockCategory));
		setFdDrivingMode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDrivingMode")), fdDrivingMode));
		setFdCheckKey(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckKey")), fdCheckKey));
		setFdMoveLength(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMoveLength")), fdMoveLength));
		setFdCheckJjm(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCheckJjm")), fdCheckJjm));
		setFdRoadwayUsing(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRoadwayUsing")), fdRoadwayUsing));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdTunnelType",StringUtils.toString(fdTunnelType, eiMetadata.getMeta("fdTunnelType")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdProjectId",StringUtils.toString(fdProjectId, eiMetadata.getMeta("fdProjectId")));	
			map.put("fdRockCategory",StringUtils.toString(fdRockCategory, eiMetadata.getMeta("fdRockCategory")));	
			map.put("fdDrivingMode",StringUtils.toString(fdDrivingMode, eiMetadata.getMeta("fdDrivingMode")));	
			map.put("fdCheckKey",StringUtils.toString(fdCheckKey, eiMetadata.getMeta("fdCheckKey")));	
			map.put("fdMoveLength",StringUtils.toString(fdMoveLength, eiMetadata.getMeta("fdMoveLength")));	
			map.put("fdCheckJjm",StringUtils.toString(fdCheckJjm, eiMetadata.getMeta("fdCheckJjm")));	
			map.put("fdRoadwayUsing",StringUtils.toString(fdRoadwayUsing, eiMetadata.getMeta("fdRoadwayUsing")));	
			
		return map;
	
	}
}